<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>商品详情页</h1>
    <ul>
        <li>商品名称：{{goods.0.goodsname}}</li>
        <li>商品图片：<img src="{{goods.0.goodsimg}}"></li>
        <li>商品价格：{{goods.0.goodsprice}}</li>
        <li>商品库存：{{goods.0.goodscount}}</li>
        <li>
            <form action="/detail/" method="post">
                <input type="text" name="goodsid" value="{{goods.0.goodsid}}" hidden>
                <input type="submit" value="加入购物车">
            </form>
            <a href="/detail/?car_gid={{goods.0.goodsid}}">加入购物车</a>
        </li>
    </ul>
</body>
</html>